import { config } from '@vue/test-utils'

// Stub all Element Plus components and directives to avoid render errors in shallow mounts
config.global.stubs = {
  'el-button': true,
  'el-table': true,
  'el-table-column': true,
  'el-switch': true,
  'el-card': true,
  'el-main': true,
  'el-container': true,
  'el-input': true,
  'el-form-item': true,
  'el-form': true,
  'el-dialog': true,
}

config.global.directives = {
  loading: () => {},
}
